#include "stdafx.h"
#include <iostream>
#include "_CSVReader.h"
#include "csv_reader.h"

int main( int argc, char** argv)
{
	CSVFile csv_file;
	csv_file.open("cards_breakthrough.csv");
	int n = csv_file.Read<int>(1, 1);
	std::string str = csv_file.Read<std::string>(1, 2);

	luoo::csv_reader csv;
	csv.open("cards_breakthrough.csv");
//	csv >> luoo::trash;

	std::string decl;
	int value1, value2, value3, value4, value5;

	for (size_t i = 0; i < csv.get_num_rows(); ++i)
	{
		csv[i] >> luoo::trash >> decl >> value1 >> value2 >> value3 >> value4 >> value5;
		std::cout << decl << " " << value1 << " " << value2 << " " << value3 << " "  << value4 << " "  << value5 << std::endl;
	}
	csv.get_csv_record(0) >> luoo::trash;

	return 0;
}